<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./jquery-3.4.1.min.js"></script>
    <script src="./jquery.fly.min.js"></script>
    <script src="./index.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            width: 800px;
            height: 400px;
            border: 1px solid #cccccc;
            margin: 50px auto;
            padding: 20px;
            position: relative;
        }

        .big {
            width: 280px;
            height: 300px;
            position: relative;
            /* border: 1px solid red; */
        }

        .big li {
            height: 300px;
            width: 280px;
            display: none;
        }

        .small {
            height: 80px;
            display: flex;
            margin-top: 25px;
            justify-content: space-between;
        }

        .left {
            width: 285px;
            height: 400px;
            float: left;
            position: relative;
        }

        .left .fangda {
            width: 280px;
            height: 300px;
            background-color: pink;
            position: absolute;
            left: 290px;
            top: 0;
            overflow: hidden;
            display: none;
        }

        .small div {
            height: 62px;
            width: 58px;
            border: 1px solid transparent;
            box-sizing: border-box;
        }

        .right {
            float: left;
            height: 400px;
            width: 460px;
            margin-left: 40px;
            /* border: 1px solid red; */
        }

        .rtop {
            font-weight: bold;
            font-size: 22px;
            color: black;
            /* margin-left: 20px; */
        }

        .price {
            color: #f40;
            font-style: italic;
            font-size: 30px;
            font-weight: bold;
            margin-top: 30px;
        }

        .center {
            height: 42px;
            margin-top: 40px;
        }

        .center li {
            height: 40px;
            width: 80px;
            border: 1px solid #ccc;
            margin-right: 10px;
            float: left;
            font-weight: bold;
            text-align: center;
            line-height: 40px;
        }

        /* .box .center .dv {
            border: 1px solid red;
        } */

        .num {
            width: 64px;
            height: 44px;
            margin-top: 40px;
            font-weight: bold;
            text-align: center;

        }

        .numleft {
            border: 1px solid #ccc;
            width: 40px;
            height: 42px;
            float: left;
            text-align: center;
            line-height: 42px;
        }

        .numright {
            width: 20px;
            height: 40px;
            float: left;
            line-height: 20px;
        }

        .numright div {
            border: 1px solid #ccc;
        }

        .righttop {
            height: 20px;
            width: 20px;
        }

        .rb {
            width: 20px;
            height: 20px;
        }

        ul,
        ol {
            list-style: none;
        }

        .add {
            width: 80px;
            line-height: 40px;
            text-align: center;
            padding: 5px 10px;
            border-radius: 5px;
            height: 40px;
            margin-top: 40px;
            background-color: pink;
            border: 1px solid #aaa;
        }

        img {
            width: 100%;
            height: 100%;
            display: block;
        }

        .hide {
            display: none;
        }

        .box .show {
            display: block;
        }

        .small .ac,
        .center .ac {
            border: 1px solid red;
        }

        .addbox,
        .addbox span {
            position: absolute;
            padding: 0 10px;
            text-align: center;
            right: 0;
            top: 50%;
            width: 50px;
            height: 50px;
        }

        .addbox span {
            background-color: pink;
            line-height: 50px;

        }

        .big .mask {
            width: 70px;
            /* 35 37.5 */
            height: 75px;
            background-color: yellow;
            opacity: 0.5;
            position: absolute;
            left: 0;
            top: 0;
        }

        .fangda img {
            position: absolute;
            left: 0;
            top: 0;
            width: 1120px;
            height: 1500px;
            display: none;
        }

        .point {
            cursor: not-allowed;
        }

        .point2 {
            cursor: pointer;
        }
        .allPrice{
            text-align: center;
            line-height: 400px;
            font-size: 80px;
            display: none;
            position: absolute;
            width: 400px;
            height: 400px;
            top: 20px;
            left: 0;
            right: 0;
            margin: 0 auto;
            background-color: violet;
        }
        .allPrice span{
            font-size: 16px;
            line-height: 20px;
            background-color: #fff;
            position: absolute;
            width: 20px;
            height: 20px;
            top: 0;
            right: 0;
            text-align: center;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="left">
            <div class="big">
                <ul>
                    <li class=""><img src="./淘宝购物/0.jpg" alt=""></li>
                    <li class=""><img src="./淘宝购物/1.jpg" alt=""></li>
                    <li class=""><img src="./淘宝购物/2.jpg" alt=""></li>
                    <li class=""><img src="./淘宝购物/3.jpg" alt=""></li>
                    <li class="show"><img src="./淘宝购物/4.jpg" alt=""></li>
                </ul>
                <div class="mask hide"></div>
            </div>

            <div class="small">
                <div><img src="./淘宝购物/0.jpg" alt=""></div>
                <div><img src="./淘宝购物/1.jpg" alt=""></div>
                <div><img src="./淘宝购物/2.jpg" alt=""></div>
                <div><img src="./淘宝购物/3.jpg" alt=""></div>
            </div>
            <div class="fangda">
                <img src="./淘宝购物/0.jpg" alt="" class="show">
                <img src="./淘宝购物/1.jpg" alt="" class="show">
                <img src="./淘宝购物/2.jpg" alt="" class="show">
                <img src="./淘宝购物/3.jpg" alt="" class="show">
                <img src="./淘宝购物/4.jpg" alt="" class="show">
            </div>
        </div>
        <div class="right">
            <p class="rtop">淘宝选女朋友--不要998，女友带回家！！</p>
            <p class="price">480-99888元</p>
            <div class="center">
                <ol>
                    <li>标准版</li>
                    <li>升级版</li>
                    <li>豪华版</li>
                    <li>定制版</li>
                </ol>
            </div>
            <div class="num">
                <div class="numleft">1</div>
                <div class="numright">
                    <div class="righttop">+</div>
                    <div class="rb point">-</div>
                </div>
            </div>
            <div class="add point">
                加入购物车
            </div>
        </div>
        <div class="addbox">
            购物车
            <span>0</span>
        </div>
        <div class="allPrice">
            <span>X</span>
            <p>0</p>
        </div>
    </div>
</body>
<script>
    // new TB('box')
    new TB('box')
</script>
    
</html>